package com.xyrl.project.common.authentication;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.RandomStringUtils;

/**
 * 当前登录用户信息
 */
@Data
@NoArgsConstructor
public class LoginInfo {
    /**
     * 登录帐号
     */
    private String loginName;
    /**
     * 登录类型
     */
    private String userType;
    /**
     * 设备id
     */
    private String deviceId = RandomStringUtils.randomAlphanumeric(20);

    public LoginInfo(String loginName, String userType) {
        this.loginName = loginName;
        this.userType = userType;
    }
}
